<?php

 /**
  *   建立news操作数据库模板类   方法
  *   引入MySQLDB工具类
  */

//引入Model 基础模型了
//include './Frame/Model.class.php';

class newsModel extends Model{
    //获取新闻列表方法
    public function getList(){
        //$arr = array();
        ////实例化一个对象
        //$obj = MySQLDB::getInstance($arr);
        $sql = 'select * from news';
        return  $this->bases->my_query($sql);
        
    }

    public function newsremove($news_id){
        $sql = 'delete from news where id='.$news_id;
        return $this->bases->my_query($sql);  
    }

}